import React from 'react';
import styles from './index.less';
import { history, formatMessage, useIntl, getDvaApp, withRouter, connectMaster } from 'umi';
import { Button } from 'antd';
import { connect } from 'dva';
import { routerGo } from '@/utils/router';

@connectMaster    //接收主服务数据
@withRouter
@connect(({ }) => ({

}))
export default class extends React.Component {
  componentDidMount() {
   
  }

  render() {
    return (
      <div>
        <span style={{ marginRight: "20px" }}>我是app2 的page1页面</span>

        <Button
          type="primary"
          style={{ marginBottom: "10px" }}
          onClick={() => { history.push('/page2') }}>
          跳转2
        </Button>
      </div>
    );
  }
}







